Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

also....

obviously, the try block does the main business logic needed. I always follow that with a finally like this

finally {
try {
memo.recycle();
log.recycle();
agentContext.recycle();
nsession.recycle();
System.runFinalization();
System.gc();
} catch (Exception e) {
e.printStackTrace();
}
}

is that too much ? Can it hurt ? Some say when the agent ends, ALL memory is reclaimed, even if its a Notes agent. Its only During the course of the agent, that the heap can run out.

I would really love to see a Best Practices or Guidelines kind of thing from someone knowledgable about how They do the memory management....using a lot of Actual Code examples instead of speaking at a kind of computer scientist compiler-developer level....


Feedback response number WEBB8G4JZ4 created by ~Dana Cisfooskiynds on 04/20/2011

Server JVM Problems (~Dana Cisfooski... 19.Apr.11)
. . known issue with java agents with a... (~Dean Refanaikl... 20.Apr.11)
. . Check out Notes.ini setting for Jav... (~Arnold Zenjumi... 20.Apr.11)
. . . . That one I am trying to use already... (~Dana Cisfooski... 20.Apr.11)
. . . . . . You *do* recycle all Notes objects ... (~Arnold Zenjumi... 20.Apr.11)
. . . . . . . . Yes, but ....... (~Dana Cisfooski... 20.Apr.11)
. . . . . . . . . . also.... (~Dana Cisfooski... 20.Apr.11)
. . . . . . . . . . . . Java recycling... (~Zelda Ekresask... 20.Apr.11)
. . . . . . . . . . . . . . Tremendous (~Dana Cisfooski... 20.Apr.11)
. . . . . . . . . . . . . . . . Domingo (~Hal Nonboosige... 22.Apr.11)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS